/*************************************************************************************
 * Universidad del Valle de Guatemala
 * Luis Aguirre Pacay 12024
 * Pablo Duque 12145
 * AVL.java
 *************************************************************************************/
public class AVL implements WordSet{
    AvlTree arbol;
    Word retorno;
    public AVL(){
        arbol = new AvlTree();
    }

    @Override
    public void add(Word wordObject) {
        arbol.insert(wordObject);
    }

    @Override
    public Word get(Word word) {
        retorno = (Word)arbol.find(word);
        return retorno;
    }
        
}